﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CreateEditArtiles.ascx.cs" Inherits="Web.Cms.Content.Articles.CreateEditArtiles" %>
<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="radCln" %>
<%@ Register Assembly="RadUpload.Net2" Namespace="Telerik.WebControls" TagPrefix="radU" %>
<%@ Register Assembly="FilePickerControl" Namespace="AWS.FilePicker" TagPrefix="cc2" %>
<%@ Register Assembly="AS.ImagePicker" Namespace="AS.ImagePicker" TagPrefix="cc2" %>
<%@ Register Assembly="AS.FilePicker" Namespace="AS.FilePicker" TagPrefix="Chh" %>
<%@ Register TagPrefix="cc1" Namespace="AWS.FilePicker" Assembly="FilePickerControl" %>      

<p class="heading">
TẠO MỚI BÀI VIẾT
</p>
<div id="editcontent">
    <b><asp:Literal ID="ltrJump" runat="server"></asp:Literal></b>
    <div class="edit_validation">
        <asp:ValidationSummary ID="ValidationSummary1" ForeColor="Red" runat="server" DisplayMode="BulletList"
            Font-Bold="true" HeaderText="Có lỗi xảy ra khi đăng bài viết mới :" ShowMessageBox="true" />           
    </div>
    <div id="editcontent_left">
        <div class="input_label" id="Div1" runat="server" visible="false">
            Lựa chọn ngôn ngữ: <asp:DropDownList runat="server" ID="dropLang" AutoPostBack="false">                              
            </asp:DropDownList>
        </div>       
        <div class="input_label" id="box_inputLabel" runat="server" visible="false">Tiêu đề phụ</div>
        <div id="box_subHeadline" runat="server" visible="false">
            <asp:TextBox ID="txtSubHeadline" runat="server" Width="440px" CssClass="input"></asp:TextBox></div>        
        <div class="input_label">Tiêu đề</div>
        <div>
            <asp:TextBox ID="txtHeadline" runat="server" Width="440px" CssClass="input"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtHeadline"
                ErrorMessage="Tiêu để chính không được để trống">*</asp:RequiredFieldValidator>
        </div>        
        <div class="input_label">Tóm tắt (Tối đa 1000 kí tự)</div>
        <div><CE:Editor AutoConfigure="Full_noform" ID="TxtTeaser" runat="server"></CE:Editor> </div>
        <div id="editcontent_body">
            <div class="input_label">
                Nội dung chính
            </div>
            <CE:Editor AutoConfigure="Full_noform" ID="txtBody" runat="server">
            </CE:Editor>                                   
        </div>
        <div id="editcontent_button">
            <asp:Button ID="btnAdd" runat="server" SkinID="AdminButtonAdd" Visible="false" 
                onclick="btnAdd_Click" /> <%--thêm mới--%>&nbsp;
            <asp:Button ID="btnUpdate" runat="server" SkinID="AdminButtonUpdate" 
                Visible="false" onclick="btnUpdate_Click" /> <%--Update--%>&nbsp;           
        </div>
        <div>&nbsp;</div>
    </div>
    <div style="float: left; width: 370px;">
        <div id="editcontent_right">
            <div class="input_label">Lựa chọn chuyên mục</div>                    
               <asp:DropDownList runat="server" ID="DropZone"></asp:DropDownList>                              
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="DropZone"
                ErrorMessage="Bạn chưa lựa chọn chuyên mục" InitialValue="0">*</asp:RequiredFieldValidator>
               <div class="input_label">Lựa chọn kiểu hiển thị</div>   
              <table width="100%" cellpadding="0" cellspacing="0" border="0">                                   
                    <tr>
                        <td align="left" >                             
                            <asp:CheckBox ID="chTinNoiBat" runat="server" Text="Tin nổi bật"/>                            
                            <asp:CheckBox ID="chTinMoiNhat" runat="server" Text="Tin mới nhất" Checked="true" />&nbsp;
                            &nbsp;<asp:CheckBox ID="chTinTieuDiem" runat="server" Text="Tiêu điểm chung" Visible="false" />                                                        
                            <br />
                        </td>
                    </tr>
              </table>
            <div class="input_label">Ngày viết</div>
            <radCln:RadDateTimePicker ID="rdtpDistributeOn" runat="server">
            </radCln:RadDateTimePicker>                                          
            <div class="images">
                <div class="input_label" style="display:none;">File đính kèm</div>
                <div style="display:none;">
                    <cc2:FilePicker ID="txtAttachFile" runat="server" fpPopupURL="/FilePicker/FilePicker.aspx"
                        Width="100px" fpAllowedUploadFileExts="doc,jpg,gif,png,jpeg,rar,zip,ppt,pptx,xls,xlsx" CssClass="input"></cc2:FilePicker>
                        (Giới hạn một số định dạng file:doc,docx,ppt,pptx,xls,xlsx,zip,rar,jpg)
                </div>
                <div class="input_label">Ảnh tin bài</div>
                <div>
                    <cc1:FilePicker ID="txtAvatar" runat="server" fpPopupURL="/FilePicker/FilePicker.aspx"
                    Width="200px" fpAllowedUploadFileExts="jpg,gif,png,jpeg" CssClass="input"></cc1:FilePicker>
                    <%--<cc2:ImagePicker FrameHeight="450" FrameWidth="730"  Resizable="true" ID="txtAvatar" runat="server" Url="/ImagePicker/Picker.aspx" ImageWidth="210" ImageHeight="140" Icon="/images/closedfolder.gif"></cc2:ImagePicker>--%>
                    <%--<Chh:ImagePicker  ID="txtAvatar" runat="server" Resizable="true" FrameHeight="450" ImageWidth="210" ImageHeight="140" FrameWidth="785" 
                            Url="/AS_Picker/ImageBrowse.aspx" Icon="/images/closedfolder.gif"></Chh:ImagePicker>                           					--%>
                            
                </div>
                <div class="input_label" style="display:none;">Mô tả ảnh</div>
                <div style="display:none;">
                    <asp:TextBox ID="txtAvatarDes" Width="190px" runat="server" Rows="3" TextMode="MultiLine"
                        Height="50px" CssClass="textarea"></asp:TextBox></div>
                <div class="input_label" style="display:none;">Ảnh nhỏ(Ảnh hiển thị phần tin tiêu điểm)</div>
                <div style="display:none;">
                    <cc2:ImagePicker FrameHeight="400" FrameWidth="500"  Resizable="true" ID="txtSmallThumbnail" runat="server" Url="/ImagePicker/Picker.aspx" ImageWidth="150" ImageHeight="85" Icon="/images/closedfolder.gif"></cc2:ImagePicker>                     
                </div>
                <div class="input_label" style="display:none;">Ảnh lớn</div>
                <div style="display:none;">
                    <cc2:ImagePicker FrameHeight="650" FrameWidth="750"  Resizable="true" ID="txtBigThumbnail" runat="server" Url="/ImagePicker/Picker.aspx" ImageWidth="150" ImageHeight="85" Icon="/images/closedfolder.gif"></cc2:ImagePicker>
                </div>
                <div runat="server" id="divAlbum">
                    <div class="input_label">Upload Album ảnh cho bài viết</div>
                    <div><radU:RadUpload ID="RadUploadFile" runat="server"  Skin="Vista" AllowedFileExtensions=".flv,.mp4,.jpg,.png,.gif" />
                </div>    
                <div class="input_label" runat="server" id="divListAlbum">
                    <a style="cursor:hand;" onclick="javascript:return showPopWinADMIN('/Modules/CMS/CP/Contents/ListAlbum.aspx?ContentIDLang=','Quản lý Album ảnh',780,530,null,__doPostBack)">
                        Click vào đây để xem Album ảnh
                    </a>
                </div>   
                </div>
              </div>  
        </div>
    </div>    
</div>
<p class="clear_space">
</p>

